<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd">

  <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">

    <property name="processEngineName" value="ResourceAuthorizationProvider-engine" />

    <property name="jdbcUrl" value="jdbc:h2:mem:ResourceAuthorizationProvider-engine;DB_CLOSE_DELAY=1000" />
    <property name="jdbcDriver" value="org.h2.Driver" />
    <property name="jdbcUsername" value="sa" />
    <property name="jdbcPassword" value="" />

    <!-- Database configurations -->
    <property name="history" value="${history.level}" />
    <property name="databaseSchemaUpdate" value="create-drop" />

    <!-- Empty beans map to for testing purpose -->
    <property name="beans">
      <map/>
    </property>

    <!-- job executor configurations -->
    <property name="jobExecutorActivate" value="false" />

    <!-- turn off metrics reporter -->
    <property name="dbMetricsReporterActivate" value="false" />
    <property name="taskMetricsEnabled" value="false" />

    <!-- resource authorization provider -->
    <property name="resourceAuthorizationProvider" ref="myResourceAuthorizationProvider" />

  </bean>

  <bean id="myResourceAuthorizationProvider" class="org.camunda.bpm.engine.test.api.authorization.MyResourceAuthorizationProvider" />

</beans>
